#include <cstdio>
#include <iostream>
using namespace std;

int main()
{
	int r1, r2;
	double R;
	cin >> r1 >> r2;
	R = 1.0/((1.0/r1)+(1.0/r2));
	printf("%.2lf",R);
	return 0;
}
